package server.content.skills.picking;

 
import server.content.skilling.PlayerSkill;
import server.event.CycleEvent;
import server.event.CycleEventContainer;
import server.event.CycleEventHandler;
import server.game.players.Client;

/**
 * 
 * @author Miracle
 *
 */
public class PickObject extends PlayerSkill {

	public PickObject(Client c, int skillId) {
		super(c, skillId);
	}

	@Override
	public void init() {
		switch (getClient().objectId) {
		/*
		 * Flax.
		 */
		case 2646:
			getClient().startAnimation(827);
			setTick(2);
			process();
			break;
		}
	}

	@Override
	public void process() {
		CycleEventHandler.getSingleton().addEvent(getClient(),
				new CycleEvent() {

					@Override
					public void execute(CycleEventContainer container) {

					}

					@Override
					public void stop() {

					}
				}, getTick());
	}

	@Override
	public void kill() {
		setActive(false);
		setTick(-1);
	}

}
